import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '目前状态/就业状态',
    dataIndex: 'workStatus'
   },
   {
    title: '城市/所在城市',
    dataIndex: 'stayCity'
   },
   {
    title: '行业/所属行业',
    dataIndex: 'sectorName'
   },
   {
    title: '工作企业/就业企业名称',
    dataIndex: 'workFirm'
   },
   {
    title: '就业时间',
    dataIndex: 'workStartDate'
   },
   {
    title: '岗位名称',
    dataIndex: 'gangweiName'
   },
   {
    title: '职位级别/职位',
    dataIndex: 'workPositionName'
   },
   {
    title: '薪资范围/薪资待遇',
    dataIndex: 'salaryRange'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '目前状态/就业状态',
    field: 'workStatus',
    component: 'Input'
  },
 {
    label: '城市/所在城市',
    field: 'stayCity',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '目前状态/就业状态',
    field: 'workStatus',
    component: 'Input',
  },
  {
    label: '城市/所在城市',
    field: 'stayCity',
    component: 'Input',
  },
  {
    label: '行业/所属行业',
    field: 'sectorName',
    component: 'Input',
  },
  {
    label: '工作企业/就业企业名称',
    field: 'workFirm',
    component: 'Input',
  },
  {
    label: '就业时间',
    field: 'workStartDate',
    component: 'Input',
  },
  {
    label: '岗位名称',
    field: 'gangweiName',
    component: 'Input',
  },
  {
    label: '职位级别/职位',
    field: 'workPositionName',
    component: 'Input',
  },
  {
    label: '薪资范围/薪资待遇',
    field: 'salaryRange',
    component: 'Input',
  },
];
